package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

import java.math.BigDecimal;

/**
 * Created by Administrator on 2018/8/2 0002.
 */
@Entity
@Table(name = "t_sys_big_achievements", schema = "oa", catalog = "")
public class BigAchievementsEntity extends BaseEntity {
    private  String bigAreaId;
    private  String bigManagerId;
    private  String month;
    private BigDecimal saleTargetNum;
    private  BigDecimal saleFinishNum;
    private  String createUserId;

    public String getBigAreaId() {
        return bigAreaId;
    }

    public void setBigAreaId(String bigAreaId) {
        this.bigAreaId = bigAreaId;
    }

    public String getBigManagerId() {
        return bigManagerId;
    }

    public void setBigManagerId(String bigManagerId) {
        this.bigManagerId = bigManagerId;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public BigDecimal getSaleTargetNum() {
        return saleTargetNum;
    }

    public void setSaleTargetNum(BigDecimal saleTargetNum) {
        this.saleTargetNum = saleTargetNum;
    }

    public BigDecimal getSaleFinishNum() {
        return saleFinishNum;
    }

    public void setSaleFinishNum(BigDecimal saleFinishNum) {
        this.saleFinishNum = saleFinishNum;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("BIG_AREA_ID", getBigAreaId());
        obj.put("BIG_MANAGER_ID", getBigManagerId());
        obj.put("MONTH", getMonth());
        obj.put("SALE_TARGET_NUM", getSaleTargetNum());
        obj.put("SALE_FINISH_NUM", getSaleFinishNum());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("CREATE_USER_ID", getCreateUserId());
        return obj;
    }

    @Override
    public String getTableName() {
        return "t_sys_big_achievements";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("BIG_AREA_ID", "bigAreaId");
        obj.put("BIG_MANAGER_ID", "bigManagerId");
        obj.put("MONTH", "month");
        obj.put("SALE_TARGET_NUM", "saleTargetNum");
        obj.put("SALE_FINISH_NUM", "saleFinishNum");
        obj.put("CREATE_TIME", "createTime");
        obj.put("CREATE_USER_ID", "createUserId");
        return obj;
    }

}
